package com.neu.po;

public class User {
    private int id;
    private String name;
    private String loginpwd;
    private String loginname;
    private String phone;
    private float balance;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoginpwd() {
        return loginpwd;
    }

    public void setLoginpwd(String loginpwd) {
        this.loginpwd = loginpwd;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public User(int id, String name, String loginpwd, String loginname, String phone, float balance) {
        this.id = id;
        this.name = name;
        this.loginpwd = loginpwd;
        this.loginname = loginname;
        this.phone = phone;
        this.balance = balance;
    }

    public User() {
    }

    public User(String name, String loginname, String loginpwd, String phone, float balance) {
        this.name = name;
        this.loginpwd = loginpwd;
        this.loginname = loginname;
        this.phone = phone;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", loginpwd='" + loginpwd + '\'' +
                ", loginname='" + loginname + '\'' +
                ", phone='" + phone + '\'' +
                ", balance=" + balance +
                '}';
    }
}
